Change trigger branch. Add RC#201
Merged
printminion-co merged 11 commits intorc/nsw-3from Jan 28, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR enhances the GitHub Actions workflow to support release candidate branches by adding rc/** branch pattern support for automated builds and remote workflow triggers.
Changes:
- Added
rc/**branch pattern to workflow push triggers - Updated remote workflow trigger conditions to include
rc/*branches - Modified build type determination to map
rc/*branches torcbuild type and standardized GitLab reference tomainfor all branch types
ea53e5f to
58949f4
Compare
fc803cf to
2583fb8
Compare
Author
|
@copilot open a new pull request to apply changes based on the comments in this thread |
5 tasks
|
@printminion-co I've opened a new pull request, #205, to work on those changes. Once the pull request is ready, I'll request review from you. |
f5a36c5 to
e8114f2
Compare
7fa1b59 to
1f4bb38
Compare
Author
|
@copilot open a new pull request to apply changes based on the comments in this thread |
7 tasks
|
@printminion-co I've opened a new pull request, #207, to work on those changes. Once the pull request is ready, I'll request review from you. |
1f4bb38 to
2efca8f
Compare
Improve clarity and maintainability by restructuring the branch type to GitLab BUILD_TYPE mapping. Add inline documentation table showing the complete mapping for all supported branch patterns (ionos-dev, ionos-stable, rc/*, and pull requests). Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
Convert single-line branch validation condition into multi-line format to improve readability and prepare for future extensions to support additional branch patterns. Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
Convert single-line concurrency group definition to multi-line YAML format for improved readability. No functional changes. Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
Update concurrency group to use github.head_ref with ref_name fallback instead of ref. This provides better isolation for pull request builds while maintaining compatibility with branch builds. Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
Enable automatic cancellation of in-progress workflow runs when new commits are pushed to the same branch or pull request. This prevents redundant builds and saves CI resources. Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
Add pull_request event type to branch validation condition, enabling the workflow to run on PRs targeting ionos-dev, ionos-stable, and rc/* branches. Update validation error message to reflect PR support. Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
2efca8f to
958ff8a
Compare
958ff8a to
2dacc4b
Compare
As requested by target repo team
2dacc4b to
d1d3c33
Compare
d1d3c33 to
d3079aa
Compare
Add full CI/CD pipeline support for release candidate (rc/*) branches across all workflow stages: Workflow Triggers: - Add 'rc/**' pattern to push trigger branches - Update concurrency group to prevent rc/* builds from interfering Branch Validation: - Extend configuration check to recognize rc/* as valid trigger branch - Update validation messages to include rc/* in expected patterns Artifactory Integration: - Enable artifact upload for rc/* branches - Create separate 'rc/*' directory for rc/* build artifacts - Set ARTIFACTORY_STAGE_PREFIX='rc' for proper organization GitLab Pipeline Integration: - Set BUILD_TYPE='rc' for rc/* branch builds - Update trigger conditions to include rc/* branches - Add rc/* to branch-to-GitLab mapping documentation table This provides complete parity with ionos-dev and ionos-stable branches, enabling proper release candidate workflow with isolated artifacts. Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
Update concurrency group definition to use github.event.number for pull requests. This ensures each PR gets its own concurrency group, preventing PRs from canceling each other's builds while still allowing new commits to the same PR to cancel previous runs. Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
Add comprehensive validation before triggering remote GitLab workflow: Dependency Management: - Add build-artifact to needs array to ensure NC_VERSION output is available - Update if condition to verify both build-artifact and upload-to-artifactory succeeded Variable Validation: - Validate secrets (GITLAB_TOKEN, GITLAB_TRIGGER_URL) - Validate job outputs (NC_VERSION, ARTIFACTORY_LAST_BUILD_PATH) - Validate GitHub context variables (sha, run_id, ref_name) - Abort with error if any required variable is missing This prevents the remote workflow from being triggered with missing critical variables like NC_VERSION, which was previously not available because build-artifact was not in the needs array. Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
Update trigger-remote-dev-workflow to target the main branch in GitLab for all branch types (ionos-dev, ionos-stable, rc/*) instead of 'stable'. This represents a behavioral change for ionos-stable branch: it now triggers GitLab builds with ref="main" instead of ref="stable". This aligns with the GitLab repository structure where main is the target branch for container image builds across all branch types. Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
d3079aa to
d00793e
Compare
|
LGTM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request updates the GitHub Actions workflow in
.github/workflows/build-artifact.ymlto add support for release candidate (rc/*) branches, improve concurrency handling, and enhance artifact storage and remote trigger logic. These changes make the CI/CD pipeline more flexible and robust, especially for managing release candidate builds alongside existing development and stable workflows.Support for rc/ branches and improved workflow logic:*
rc/**to the list of branches that trigger the workflow, and updated branch validation logic to acceptionos-dev,ionos-stable, and anyrc/*branch. [1] [2]rc/*branches, preventing collisions and ensuring correct workflow cancellation.Artifact upload and storage enhancements:
rc/*branches, and clarified the storage logic for PRs, dev, stable, and rc builds. The artifact paths now include version and short SHA for better traceability. [1] [2]Remote workflow trigger improvements:
rc/*branches, added prerequisite checks for required variables and secrets, and mapped all branches to the correct build type (dev,stable,rc) for remote triggering.ref="main"regardless of branch, ensuring consistency in remote build invocation.TODO
rc/*branch. e.g. https://github.com/IONOS-Productivity/ncw-server/tree/refs/heads/rc/tmp-01Checklist